#!/usr/local/bin/python3
__author__ = '曹植'
import redis


class BaseRedis:
    # 本地测试
    def __init__(self):
        ip = '192.168.1.228'
        password = 'caozhi123'
        r = redis.Redis(host=ip, password=password, port=16379, db=11, decode_responses=True)  # redis默认连接db0
        self.r = r
